﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StorageAdd.aspx.cs" Inherits="Comod_StorageAdd" %>

<html>
<head>
<title>商品入库</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/rl.js"></script>
<script type="text/javascript" src="../js/submit.js"></script>
<script type="text/javascript">
    function dispAdd()
    {
        document.getElementById("flag").style.display="none";//审核不显示
    }
</script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body >
    <form id="form1" runat="server" >
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"  >
            <tr>
                <td width="2%" height="22" >
                    <img src="../images/module.gif"  height="22"/></td>
                <td width="85%" >
              <asp:Label ID="lblPatd" runat="server"></asp:Label></td>
                <td width="13%" align="right" >
                    <font color="red"> [ <a href="javascript:location.href=document.referrer;" ><font color="red">返回</font></a> ]</font>                </td>
            </tr>
      </table>
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
      </table>
        <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" class="tabGg" >
            <tr>
                <td colspan="4" align="center" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center" class="F_B font14">采购进货</td>
                  </tr>
                </table>
                </td>
            </tr>
            
            <tr>
                <td width="12%" bgcolor="#FFFFFF" class="r_bg" >
                    型号编号：</td>
                <td width="31%" bgcolor="#FFFFFF" class="right_bg"  >
              <asp:TextBox ID="txtCode" runat="server" CssClass="input1"  check_null="提示：请输入客户姓名" ReadOnly="True"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode"
                        ErrorMessage="必填"></asp:RequiredFieldValidator></td>
                    <td width="12%" bgcolor="#FFFFFF" class="r_bg" >
                    采购数量：</td>
                <td width="45%" bgcolor="#FFFFFF" class="right_bg"  >
              <input id="txtNum" runat="server" type="text" check_number='数量输入错误'  onBlur="if(this.value=='')this.value=0"   onFocus="if(this.value==0)this.value=''"   onkeyup="value=value.replace(/[^\d]/g,'');" class="input1" value="1"  />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtSdate"
                        ErrorMessage="必填"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 24px">
                    所属类型：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 24px">
                    <asp:DropDownList ID="ddlType" runat="server"  CssClass="input1" AutoPostBack="True"  OnSelectedIndexChanged="ddlType_SelectedIndexChanged" Width="130px" ></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlType"
                        ErrorMessage="必选"></asp:RequiredFieldValidator></td>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 24px">
                    供 货 商：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 24px">
                    <asp:DropDownList ID="ddlSupplier" runat="server" CssClass="input1" Width="130px" > </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlSupplier" ErrorMessage="必选"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 24px">
                    商品品牌：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 24px">
                    <asp:DropDownList ID="ddlName" runat="server"  CssClass="input1" OnSelectedIndexChanged="ddlName_SelectedIndexChanged" AutoPostBack="True" Width="130px">  </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlName"
                        ErrorMessage="必选"></asp:RequiredFieldValidator></td>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 24px">
                    收货仓库：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 24px">
                    <asp:DropDownList ID="ddlComodiName" runat="server"  CssClass="input1" Width="130px">                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlComodiName" ErrorMessage="必选"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg">
                    商品名称：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlSpecifications" runat="server"  CssClass="input1"  AutoPostBack="True" OnSelectedIndexChanged="ddlSpecifications_SelectedIndexChanged" Width="130px"></asp:DropDownList>&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlSpecifications"
                        ErrorMessage="必选"></asp:RequiredFieldValidator></td>
                <td bgcolor="#FFFFFF" class="r_bg">
                    入库类型：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlTypeStocck" runat="server" Width="130px">
                        <asp:ListItem Value="">选择入库类型</asp:ListItem>
                        <asp:ListItem Value="1">常规机</asp:ListItem>
                        <asp:ListItem Value="2">工程机</asp:ListItem>
                        <asp:ListItem Value="3">返修机</asp:ListItem>
                        <asp:ListItem Value="4">赠品</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlTypeStocck"  ErrorMessage="必选"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 26px">
                    规格型号：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px" >
                    <asp:DropDownList ID="ddlUnits" runat="server"  CssClass="input1" AutoPostBack="True" OnSelectedIndexChanged="ddlUnits_SelectedIndexChanged"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlUnits"
                        ErrorMessage="必选"></asp:RequiredFieldValidator></td>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 26px" >
                    入库日期：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 26px" >
                    <asp:TextBox ID="txtSdate" runat="server" CssClass="input1" onclick="SelectDate(this.id)"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtSdate"
                        ErrorMessage="必填"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg">
                    商品单位：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:DropDownList ID="ddlck" runat="server"  CssClass="input1" Width="130px"></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlck" ErrorMessage="必选"></asp:RequiredFieldValidator></td>
                <td bgcolor="#FFFFFF" class="r_bg">
                    采购价：</td>
                <td bgcolor="#FFFFFF" class="right_bg"><asp:TextBox ID="txtProcMoney" runat="server" onBlur="if(this.value=='')this.value=0"   onFocus="if(this.value==0)this.value=''" CssClass="input1" >0</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="txtProcMoney"
                        ErrorMessage="必填"></asp:RequiredFieldValidator><!--<asp:CheckBox ID="CheckBox1" runat="server" Text="规则选择" />--></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >
                    商品备注：</td>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" >
                    <asp:TextBox ID="txtComoContent" runat="server"  Columns="40" Rows="4" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr id="flag">
                <td bgcolor="#FFFFFF" class="r_bg" >
                    审核：</td>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" >
                    <asp:RadioButton ID="flag1" runat="server" ForeColor="Red" GroupName="flag" Text="通过" Checked="True" />
                    <asp:RadioButton ID="flag2" runat="server" ForeColor="Red" GroupName="flag" Text="不通过" /></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作人员：</td>
                <td bgcolor="#FFFFFF" class="right_bg" style="height: 16px">
                    <asp:Label ID="lblName" runat="server"></asp:Label></td>
                <td bgcolor="#FFFFFF" class="r_bg" style="height: 16px">
                    操作时间：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label CssClass="right_bg" ID="lblDate" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >                </td>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" >
                    <asp:HiddenField ID="hidModuid" runat="server"/>
                    <asp:Button ID="btnAdd" CssClass="submit" runat="server" Text=" 提交 "  OnClick="btnAdd_Click" />                </td>
            </tr>
      </table>
    </form>
</body>
</html>
